package com.fourth.controller;

import com.fourth.service.BBusinessInfoService;
import com.ljx.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 蒋一飞
 * @adte 2023/2/28 10:33
 */
@RestController
@RequestMapping("/stat")
public class BBusinessInfoController {

    @Autowired
    private BBusinessInfoService bBusinessInfoService;
    /**
     * 店铺收入统计
     */
    @GetMapping("priceBusiness")
    public Result  getMoney(){
      return   bBusinessInfoService.getBusinessInfoMoney();
    }


    /**
     * 店铺类别统计
     */
    @GetMapping("businessTotal")
   public Result getSort(){
       return bBusinessInfoService.getBusinessInfoStatus();
   }

    /**
     * 用户统计
     * @return
     */
   @GetMapping("/numberUser")
    public Result getNumberUser(){
        return bBusinessInfoService.getBusinessInfoUser();
   }
}
